8b01c7cac4b668e5c2f4fd5ade00abb8032c5fce,src/main/java/org/spongepowered/common/event/tracking/TrackingUtil.java,TrackingUtil,updateTickBlock,#CauseTracker#Block#BlockPos#IBlockState#Random#,219
Before Change
currentState.getPhase().appendNotifierPreBlockTick(causeTracker, pos, currentState, current.context, phaseContext);
// Now actually switch to the new phase
if (((IMixinBlock) block).requiresBlockCapture()) {
causeTracker.switchToPhase(TickPhase.Tick.BLOCK, phaseContext.complete());
} else {
causeTracker.switchToPhase(TickPhase.Tick.NO_CAPTURE_BLOCK, phaseContext.complete());
}
block.updateTick(minecraftWorld, pos, state, random);
After Change
final IPhaseState currentState = current.state;
currentState.getPhase().appendNotifierPreBlockTick(causeTracker, pos, currentState, current.context, phaseContext);
// Now actually switch to the new phase
IPhaseState phase = ((IMixinBlock) block).requiresBlockCapture() ? TickPhase.Tick.BLOCK : TickPhase.Tick.NO_CAPTURE_BLOCK;
causeTracker.switchToPhase(phase, phaseContext.complete());
block.updateTick(minecraftWorld, pos, state, random);
causeTracker.completePhase(phase);
}